package JavaSE.CODE.ClassInCommonUse.Object;

public class Application {
    public static void main(String[] args) {
        Student s1 = new Student(10);
        Student s2 = new Student(10);
//        System.out.println(s1.getClass().equals(s2.getClass()));

        People s3 = new Student(30);
//        System.out.println(s1.getClass().equals(s3.getClass()));
//      即使变量不一样，只要指向的内容一样，就返回true

//        System.out.println(s1.toString());
//        System.out.println(s1.equals(s2));


        new Student(10);
        new Student(15);
        System.gc();
        System.out.println("fsss");


    }
}
